﻿


namespace Admin.NET.Application.Service;
public class TraPeiXueMingXiService : BaseService<TraPeiXueMingXi>
{
    public TraPeiXueMingXiService(SqlSugarRepository<TraPeiXueMingXi> repMingXi, IServiceScopeFactory scopeFactory) : base(scopeFactory)
    {
    }



    public TraPeiXueMingXi AddMingXi(TraFaXueMingXiInput input)
    {
        var entity = input.Adapt<TraPeiXueMingXi>();
        return _rep.InsertReturnEntity(entity);


    }

    public void DelMingXi(long? id)
    {
        _rep.Delete(t => t.Id == id);

    }

    public bool UpdateMingXi(TraFaXueMingXiInput input)
    {
        return _rep.Update(input.Adapt<TraPeiXueMingXi>());
    }


}
